package com.fly;

import java.util.Arrays;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.util.Assert;

import lombok.extern.slf4j.Slf4j;

/**
 * 
 * Main
 * 
 * @author 00fly
 * @version [版本号, 2019年7月13日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Slf4j
public class Main
{
    public static void main(String[] args)
    {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Assert.notNull(context, "context is null");
        log.info("###### Application Started Success ######");
        Arrays.stream(context.getBeanDefinitionNames()).forEach(log::info);
    }
}
